package com.solution.admin.product.dao;

import java.util.List;
import java.util.Map;

import com.solution.admin.product.entity.ProductSpecCompositionEntity;
import com.solution.common.dao.BaseDao;

/**
 * 商品规格值DAO接口
 * 
 * @author xu_cc
 * @date 2017-08-31 23:48:45
 */
public interface ProductSpecCompositionDao extends BaseDao<ProductSpecCompositionEntity> {

    /**
     * 保存商品规格值
     * 
     * @param ebProductSpecCompositionEntity
     * @return
     * @author xu_cc
     * @date 2017-08-31 23:48:45
     */
    long saveProductSpecComposition(ProductSpecCompositionEntity ebProductSpecCompositionEntity);

    /**
     * 删除商品规格值角色
     * 
     * @param id
     * @return
     * @author xu_cc
     * @date 2017-08-31 23:48:45
     */
    int deleteByProductId(Long productId);

    /**
     * 根据商品规格值类型获取商品规格值
     * 
     * @param param
     * @return
     * @author xu_cc
     * @date 2017-08-31 23:48:45
     */
    List<ProductSpecCompositionEntity> listProductSpecComposition(Map<String, Object> param);
}
